package com.mdz.ypxspt.Controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mdz.ypxspt.Entity.Wlywdy;
import com.mdz.ypxspt.Mapper.WlywdyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 孟德志
 * @since 2019-12-15
 */
@Controller
@RequestMapping("/ypxspt/wlywdy")
public class WlywdyController {
    @Autowired
    private WlywdyMapper wlywdyMapper;

    @ResponseBody
    @RequestMapping("/getwlywdy")
    public List<Wlywdy> getwlywdy(){
        List<Wlywdy> wlywdies=wlywdyMapper.selectList(new QueryWrapper<Wlywdy>().eq("物料编码","11020000360"));
        return wlywdies;
    }
}

